package com.olddriver.crm.mapper;

import com.olddriver.crm.domain.Claims;
import com.olddriver.crm.domain.CompensationDetails;
import com.olddriver.crm.domain.Department;
import com.olddriver.crm.query.ClaimsQueryObject;
import com.olddriver.crm.query.CompensationDetailsQueryObject;
import com.olddriver.crm.query.QueryObject;

import java.util.List;

public interface CompensationDetailsMapper {

    int deleteByPrimaryKey(Long id);

    int insert(CompensationDetails record);
   void  deleteBySn(String sn);

    CompensationDetails selectByPrimaryKey(Long id);
    CompensationDetails selectDetailBySn(String sn);

    List<CompensationDetails> selectAll();

    int updateByPrimaryKey(CompensationDetails record);

    int queryTotal(QueryObject qo);

    List<CompensationDetails> queryRows(QueryObject qo);

    CompensationDetails selectDetailFeeById(Long compensationId);
}